import { Column, Model, Table } from 'sequelize-typescript';
import { DataTypes } from "sequelize";

@Table
export class BaseModel extends Model {
  @Column({ type: DataTypes.STRING, comment: '水厂' })
  factoryId: string;

  @Column({ type: DataTypes.STRING, comment: "组织" })
  orgId: string;

  @Column({ type: DataTypes.STRING, comment: "应用" })
  appId: string;

  @Column({ type: DataTypes.STRING, comment: "租户" })
  renterId: string;

  @Column({ type: DataTypes.STRING, defaultValue: "1", comment: "租户Id" })
  tenantId: string;
}
